Apache newbie help - Multiple /usr/sbin/httpd2-preforks ...

Apache newbie help - Multiple /usr/sbin/httpd2-preforks ...

am 26.02.2010 14:31:52 von Richard Peacock

------_=_NextPart_001_01CAB6E8.0EA3B0B7
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

Hi guys,

I am sorry if this is such a newbie question!



I was diagnosing an un-related issue on my web-server and had to list
processes to see which PID needed to be killed. I noticed that there
were several entries for the "http2-prefork" process ...



[start]

wwwrun 8786 0.0 0.5 88452 6052 ? S 10:54 0:00
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf

wwwrun 8787 0.0 0.5 88452 6052 ? S 10:54 0:00
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf

wwwrun 8788 0.0 0.5 88452 6052 ? S 10:54 0:00
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf

wwwrun 8790 0.0 0.5 88452 6040 ? S 10:54 0:00
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf

wwwrun 8791 0.0 0.5 88452 6040 ? S 10:54 0:00
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf

wwwrun 8793 0.0 0.5 88452 6040 ? S 10:54 0:00
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf

wwwrun 8813 0.0 0.5 88452 6036 ? S 10:54 0:00
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf

wwwrun 8814 0.0 0.5 88452 6036 ? S 10:54 0:00
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf

wwwrun 8815 0.0 0.5 88452 6040 ? S 10:54 0:00
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf

[end]



I mean, it's not a huge problem or anything the webserver seems to be
running OK - but is it right there should be multiple processes running
like this? I am sorry but I do not know if you need to view any configs
or if there is a setting somewhere that controls the number of
processes, I installed it through Yast and left it as default (as I am a
newbie and this is for a home website!).



I really would appreciate any replies that will help me to understand
better.

Thank you



Richard




************************************************************ **********
Privileged/Confidential Information may be contained in this
message. If you are not the addressee indicated in this
message (or responsible for delivery of the message to such
person), you must not copy, distribute or take any action in
reliance to it.
In such case, you should destroy this message and kindly
notify the sender by reply email. Please advise immediately
if you or your employer do not consent to Internet email for
messages of this kind. Opinions, conclusions and other
information in this message that do not relate to the official
business of Minorplanet Systems plc shall be understood as
neither given nor endorsed by it. Minorplanet Systems plc, Registration n=
o: 3372097
Minorplanet Limited, Registration no: 4072786
Greenwich House, 223 North Street, Leeds, LS7 2AA
VAT #: 698 1438 86
************************************************************ **********

------_=_NextPart_001_01CAB6E8.0EA3B0B7
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">


>









:10.0pt;
font-family:Arial'>Hi guys,



:10.0pt;
font-family:Arial'>I am sorry if this is such a newbie question! p>



:10.0pt;
font-family:Arial'> 



:10.0pt;
font-family:Arial'>I was diagnosing an un-related issue on my web-server =
and
had to list processes to see which PID needed to be killed.  I notic=
ed
that there were several entries for the “http2-prefork” proce=
ss …



:10.0pt;
font-family:Arial'> 



:10.0pt;
font-family:Arial'>[start]



pan
style=3D'font-size:6.0pt;font-family:"Courier New";color:green'>wwwrun&nb=
sp;  
8786  0.0  0.5  88452  6052
?        S   
10:54   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.con=
f



pan
style=3D'font-size:6.0pt;font-family:"Courier New";color:green'>wwwrun&nb=
sp;  
8787  0.0  0.5  88452  6052
?        S   
10:54   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.con=
f



pan
style=3D'font-size:6.0pt;font-family:"Courier New";color:green'>wwwrun&nb=
sp;  
8788  0.0  0.5  88452  6052
?        S   
10:54   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.con=
f



pan
style=3D'font-size:6.0pt;font-family:"Courier New";color:green'>wwwrun&nb=
sp;  
8790  0.0  0.5  88452  6040
?        S   
10:54   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.con=
f



pan
style=3D'font-size:6.0pt;font-family:"Courier New";color:green'>wwwrun&nb=
sp;  
8791  0.0  0.5  88452  6040
?        S   
10:54   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.con=
f



pan
style=3D'font-size:6.0pt;font-family:"Courier New";color:green'>wwwrun&nb=
sp;  
8793  0.0  0.5  88452  6040
?        S   
10:54   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.con=
f



pan
style=3D'font-size:6.0pt;font-family:"Courier New";color:green'>wwwrun&nb=
sp;  
8813  0.0  0.5  88452  6036 ?    =
   S   
10:54   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.con=
f



pan
style=3D'font-size:6.0pt;font-family:"Courier New";color:green'>wwwrun&nb=
sp;  
8814  0.0  0.5  88452  6036
?        S   
10:54   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.con=
f



pan
style=3D'font-size:6.0pt;font-family:"Courier New";color:green'>wwwrun&nb=
sp;  
8815  0.0  0.5  88452  6040
?        S   
10:54   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.con=
f



:10.0pt;
font-family:Arial'>[end]



:10.0pt;
font-family:Arial'> 



:10.0pt;
font-family:Arial'>I mean, it’s not a huge problem or anything the
webserver seems to be running OK - but is it right there should be multip=
le
processes running like this?  I am sorry but I do not know if you ne=
ed to
view any configs or if there is a setting somewhere that controls the num=
ber of
processes, I installed it through Yast and left it as default (as I am a =
newbie
and this is for a home website!).



:10.0pt;
font-family:Arial'> 



:10.0pt;
font-family:Arial'>I really would appreciate any replies that will help m=
e to
understand better.



:10.0pt;
font-family:Arial'>Thank you



:10.0pt;
font-family:Arial'> 



:10.0pt;
font-family:Arial'>Richard







************************************************************ ****=
******
Privileged/Confidential
Information may be contained in this
message. If you are not the addr=
essee
indicated in this
message (or responsible for delivery of the message=
to
such
person), you must not copy, distribute or take any action in

reliance to it.
In such case, you should destroy this message and =
kindly

notify the sender by reply email. Please advise immediately
if yo=
u or
your employer do not consent to Internet email for
messages of this k=
ind.
Opinions, conclusions and other
information in this message that do n=
ot
relate to the official
business of Minorplanet Systems plc shall be
understood as
neither given nor endorsed by it.

Minorplanet Systems plc, Registration no: 3372097
Minorplanet Lim=
ited,
Registration no: 4072786
Greenwich House, 223 North Street, Leeds, LS7=

2AA
VAT #: 698 1438
86
************************************************************ *******=
***


 





------_=_NextPart_001_01CAB6E8.0EA3B0B7--

Re: Apache newbie help - Multiple /usr/sbin/httpd2-preforks

am 26.02.2010 14:34:39 von Eric Covener

On Fri, Feb 26, 2010 at 8:31 AM, Richard Peacock
wrote:
> Hi guys,
>
> I am sorry if this is such a newbie question!
>
>
>
> I was diagnosing an un-related issue on my web-server and had to list
> processes to see which PID needed to be killed.=A0 I noticed that there w=
ere
> several entries for the =93http2-prefork=94 process =85
>

That's normal:

http://httpd.apache.org/docs/2.2/mod/prefork.html


--=20
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Apache newbie help - Multiple /usr/sbin/httpd2-preforks

am 26.02.2010 14:35:16 von Nilesh Govindrajan

--001485e8edde7420db048080f938
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On Fri, Feb 26, 2010 at 7:01 PM, Richard Peacock <
richard.peacock@minorplanet.com> wrote:

> Hi guys,
>
> I am sorry if this is such a newbie question!
>
>
>
> I was diagnosing an un-related issue on my web-server and had to list
> processes to see which PID needed to be killed. I noticed that there wer=
e
> several entries for the =93http2-prefork=94 process =85
>
>
>
> [start]
>
> wwwrun 8786 0.0 0.5 88452 6052 ? S 10:54 0:00
> /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
>
> wwwrun 8787 0.0 0.5 88452 6052 ? S 10:54 0:00
> /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
>
> wwwrun 8788 0.0 0.5 88452 6052 ? S 10:54 0:00
> /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
>
> wwwrun 8790 0.0 0.5 88452 6040 ? S 10:54 0:00
> /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
>
> wwwrun 8791 0.0 0.5 88452 6040 ? S 10:54 0:00
> /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
>
> wwwrun 8793 0.0 0.5 88452 6040 ? S 10:54 0:00
> /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
>
> wwwrun 8813 0.0 0.5 88452 6036 ? S 10:54 0:00
> /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
>
> wwwrun 8814 0.0 0.5 88452 6036 ? S 10:54 0:00
> /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
>
> wwwrun 8815 0.0 0.5 88452 6040 ? S 10:54 0:00
> /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
>
> [end]
>
>
>
> I mean, it=92s not a huge problem or anything the webserver seems to be
> running OK - but is it right there should be multiple processes running l=
ike
> this? I am sorry but I do not know if you need to view any configs or if
> there is a setting somewhere that controls the number of processes, I
> installed it through Yast and left it as default (as I am a newbie and th=
is
> is for a home website!).
>
>
>
> I really would appreciate any replies that will help me to understand
> better.
>
> Thank you
>
>
>
> Richard
>
> ************************************************************ **********
> Privileged/Confidential Information may be contained in this
> message. If you are not the addressee indicated in this
> message (or responsible for delivery of the message to such
> person), you must not copy, distribute or take any action in
> reliance to it.
> In such case, you should destroy this message and kindly
> notify the sender by reply email. Please advise immediately
> if you or your employer do not consent to Internet email for
> messages of this kind. Opinions, conclusions and other
> information in this message that do not relate to the official
> business of Minorplanet Systems plc shall be understood as
> neither given nor endorsed by it.
> Minorplanet Systems plc, Registration no: 3372097
> Minorplanet Limited, Registration no: 4072786
> Greenwich House, 223 North Street, Leeds, LS7 2AA
> VAT #: 698 1438 86
> ************************************************************ **********
>
>
>

Prefork is always like that. It will spawn a process for each request.

--=20
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com

--001485e8edde7420db048080f938
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On Fri, Feb 26, 2010 at 7:01 PM, Richard Peacock=
<r=
ichard.peacock@minorplanet.com
>
wrote:
=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid=
rgb(204, 204, 204); padding-left: 1ex;">














size: 10pt; font-family: Arial;">Hi guys,



size: 10pt; font-family: Arial;">I am sorry if this is such a newbie questi=
on!



size: 10pt; font-family: Arial;">=A0



size: 10pt; font-family: Arial;">I was diagnosing an un-related issue on my=
web-server and
had to list processes to see which PID needed to be killed.=A0 I noticed
that there were several entries for the =93http2-prefork=94 process =85 an>



size: 10pt; font-family: Arial;">=A0



size: 10pt; font-family: Arial;">[start]



"> r: green;">wwwrun  =A0
8786=A0 0.0=A0 0.5=A0 88452=A0 6052
?      =A0 S  =A0
10:54   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
=



"> r: green;">wwwrun  =A0
8787=A0 0.0=A0 0.5=A0 88452=A0 6052
?      =A0 S  =A0
10:54   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
=



"> r: green;">wwwrun  =A0
8788=A0 0.0=A0 0.5=A0 88452=A0 6052
?      =A0 S  =A0
10:54   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
=



"> r: green;">wwwrun  =A0
8790=A0 0.0=A0 0.5=A0 88452=A0 6040
?      =A0 S  =A0
10:54   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
=



"> r: green;">wwwrun  =A0
8791=A0 0.0=A0 0.5=A0 88452=A0 6040
?      =A0 S  =A0
10:54   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
=



"> r: green;">wwwrun  =A0
8793=A0 0.0=A0 0.5=A0 88452=A0 6040
?      =A0 S  =A0
10:54   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
=



"> r: green;">wwwrun  =A0
8813=A0 0.0=A0 0.5=A0 88452=A0 6036 ?       =A0S  =A0
10:54   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
=



"> r: green;">wwwrun  =A0
8814=A0 0.0=A0 0.5=A0 88452=A0 6036
?      =A0 S  =A0
10:54   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
=



"> r: green;">wwwrun  =A0
8815=A0 0.0=A0 0.5=A0 88452=A0 6040
?      =A0 S  =A0
10:54   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
=



size: 10pt; font-family: Arial;">[end]



size: 10pt; font-family: Arial;">=A0



size: 10pt; font-family: Arial;">I mean, it=92s not a huge problem or anyth=
ing the
webserver seems to be running OK - but is it right there should be multiple
processes running like this?=A0 I am sorry but I do not know if you need to
view any configs or if there is a setting somewhere that controls the numbe=
r of
processes, I installed it through Yast and left it as default (as I am a ne=
wbie
and this is for a home website!).



size: 10pt; font-family: Arial;">=A0



size: 10pt; font-family: Arial;">I really would appreciate any replies that=
will help me to
understand better.



size: 10pt; font-family: Arial;">Thank you



size: 10pt; font-family: Arial;">=A0



size: 10pt; font-family: Arial;">Richard







************************************************************ ******=
****
Privileged/Confidential=20
Information may be contained in this
message. If you are not the addres=
see=20
indicated in this
message (or responsible for delivery of the message t=
o=20
such
person), you must not copy, distribute or take any action in=20

reliance to it.
In such case, you should destroy this message and ki=
ndly=20

notify the sender by reply email. Please advise immediately
if you =
or=20
your employer do not consent to Internet email for
messages of this kin=
d.=20
Opinions, conclusions and other
information in this message that do not=
=20
relate to the official
business of Minorplanet Systems plc shall be=20
understood as
neither given nor endorsed by it.

Minorplanet Systems plc, Registration no: 3372097
Minorplanet Limit=
ed,=20
Registration no: 4072786
Greenwich House, 223 North Street, Leeds, LS7=
=20
2AA
VAT #: 698 1438=20
86
************************************************************ *********=
*


=A0





Prefork is always like that. It will spawn a process=
for each request.

--
Nilesh Govindarajan
Site =
& Server Administrator
www.itech7.=
com






--001485e8edde7420db048080f938--

Re: Apache newbie help - Multiple /usr/sbin/httpd2-preforks ...

am 26.02.2010 14:35:43 von Rich Bowen

--Apple-Mail-1--1026148743
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=windows-1252


On Feb 26, 2010, at 8:31 AM, Richard Peacock wrote:

> I was diagnosing an un-related issue on my web-server and had to list =
processes to see which PID needed to be killed. I noticed that there =
were several entries for the =93http2-prefork=94 process =85
> =20
> I mean, it=92s not a huge problem or anything the webserver seems to =
be running OK - but is it right there should be multiple processes =
running like this? I am sorry but I do not know if you need to view any =
configs or if there is a setting somewhere that controls the number of =
processes, I installed it through Yast and left it as default (as I am a =
newbie and this is for a home website!).
> =20

Yes, this is how it works. There's one parent process, and it pre-forks =
(creates multiple copies) in order for each one of those copies to =
handle incoming requests. It's normal and expected. Each child process =
can handle an inbound request, and the parent is responsible for =
delegating the requests to the child processes, and making sure that =
there are enough to handle the load.

--Rich=

--Apple-Mail-1--1026148743
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=windows-1252

-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
">

On Feb 26, 2010, at 8:31 AM, Richard Peacock =
wrote:

type=3D"cite"> separate; font-family: Helvetica; font-size: medium; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; =
white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: =
0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0px; ">
margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: =
12pt; font-family: 'Times New Roman'; "> face=3D"Arial">I =
was diagnosing an un-related issue on my web-server and had to list =
processes to see which PID needed to be killed.  I noticed that =
there were several entries for the =93http2-prefork=94 process =
=85
margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: =
12pt; font-family: 'Times New Roman'; "> style=3D"font-family: Arial; font-size: 13px; "> 
style=3D"margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; =
margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; =
"> font-family: Arial; ">I mean, it=92s not a huge problem or anything the =
webserver seems to be running OK - but is it right there should be =
multiple processes running like this?  I am sorry but I do not know =
if you need to view any configs or if there is a setting somewhere that =
controls the number of processes, I installed it through Yast and left =
it as default (as I am a newbie and this is for a home =
website!).
margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: =
12pt; font-family: 'Times New Roman'; "> face=3D"Arial"> "> 

=
Yes, this is how it works. There's one parent process, and it pre-forks =
(creates multiple copies) in order for each one of those copies to =
handle incoming requests. It's normal and expected. Each child process =
can handle an inbound request, and the parent is responsible for =
delegating the requests to the child processes, and making sure that =
there are enough to handle the =
load.

--Rich
=

--Apple-Mail-1--1026148743--

Re: Apache newbie help - Multiple /usr/sbin/httpd2-preforks ...

am 26.02.2010 14:41:18 von Rich Bowen

On Feb 26, 2010, at 8:35 AM, Nilesh Govindarajan wrote:

> Prefork is always like that. It will spawn a process for each request.

Not exactly. It spawns processes ahead of time, and then manages the =
process pool within specified parameters. Saying that it spawns a =
process for each request somewhat misses the "pre" nature of "prefork", =
and also suggests that it will create processes forever, and destroy =
them once the request is over.

--Rich=

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org